package com.liao.myblog.enums;

import lombok.Getter;

@Getter
public enum ResultCode {

    SUCCESS(1000, "操作成功"),
    FAILED(2001, "响应失败"),
    VALIDATE_FAILED(2002, "参数错误"),
    UNEXIST_URL(2003, "URL不存在"),
    EXPIRED_VERIFYCODE(2004, "验证码过期"),
    ERROR_VERIFYCODE(2005, "验证码错误"),
    UNEXIST_PASSWORD(2006, "密码错误"),
    UNEXIST_USERNAME(2007, "用户名不存在"),
    UNEXIST_OLD_PASSWORD(2008, "原密码错误"),
    FILE_SIZE_ERROR(2009, "文件过大"),
    ERROR(5000, "未知错误");


    public int code;
    public String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
